\psset{xunit=2,algebraic}
\begin{pspicture*}(-1,-1.5)(1,1.5)
\psaxes[labelFontSize=\scriptstyle,ticksize=-3pt 0,labelsep=2pt]{<->}(0,0)(-1,-1.5)(1,1.5)
\psplot[linecolor=blue,plotpoints=1000]{-1}{1}{sin(1/x)}
\end{pspicture*}